<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1-20130512"/>
<title>3D Cell: BPA Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">3D Cell
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1-20130512 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_b_p_a-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">BPA Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A Ball Pivot Algorithm class.  
 <a href="class_b_p_a.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="bpa_8h_source.html">bpa.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a835a931279554e707ecaf2a25fef4fb5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_p_a.html#a835a931279554e707ecaf2a25fef4fb5">BPA</a> (double *vertice, double *normals, int vertice_num, double r)</td></tr>
<tr class="memdesc:a835a931279554e707ecaf2a25fef4fb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">A constructor.  <a href="#a835a931279554e707ecaf2a25fef4fb5">More...</a><br/></td></tr>
<tr class="separator:a835a931279554e707ecaf2a25fef4fb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f8e399f140a980a5b1a964c3fcd190b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_p_a.html#a4f8e399f140a980a5b1a964c3fcd190b">Reconstruction</a> (int &amp;face_num)</td></tr>
<tr class="memdesc:a4f8e399f140a980a5b1a964c3fcd190b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reconstruct mesh from points cloud by using Ball Pivot Algorithm.  <a href="#a4f8e399f140a980a5b1a964c3fcd190b">More...</a><br/></td></tr>
<tr class="separator:a4f8e399f140a980a5b1a964c3fcd190b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07384750c4f16a4425cd54ce8f6d6b0b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_p_a.html#a07384750c4f16a4425cd54ce8f6d6b0b">CopyFaceIndex</a> (int *faceIndex)</td></tr>
<tr class="memdesc:a07384750c4f16a4425cd54ce8f6d6b0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy the faces of mesh from the <a class="el" href="class_my_mesh.html">MyMesh</a> class to <a class="el" href="class_cell_object.html" title="A Cell Object class. ">CellObject</a>.  <a href="#a07384750c4f16a4425cd54ce8f6d6b0b">More...</a><br/></td></tr>
<tr class="separator:a07384750c4f16a4425cd54ce8f6d6b0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57ffa971dd81d9f65adadd1685b6993b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_p_a.html#a57ffa971dd81d9f65adadd1685b6993b">GetIndexVertex</a> (<a class="el" href="class_my_mesh.html">MyMesh</a> &amp;<a class="el" href="class_b_p_a.html#aa7bc2f2a789d4562a0b76e10adfa8406">m</a>, MyMesh::VertexType *p)</td></tr>
<tr class="memdesc:a57ffa971dd81d9f65adadd1685b6993b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the vertex index of face.  <a href="#a57ffa971dd81d9f65adadd1685b6993b">More...</a><br/></td></tr>
<tr class="separator:a57ffa971dd81d9f65adadd1685b6993b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:aa7bc2f2a789d4562a0b76e10adfa8406"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_my_mesh.html">MyMesh</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_p_a.html#aa7bc2f2a789d4562a0b76e10adfa8406">m</a></td></tr>
<tr class="memdesc:aa7bc2f2a789d4562a0b76e10adfa8406"><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="el" href="class_my_mesh.html">MyMesh</a> variable, the defination of this class is in VCG lib.  <a href="#aa7bc2f2a789d4562a0b76e10adfa8406">More...</a><br/></td></tr>
<tr class="separator:aa7bc2f2a789d4562a0b76e10adfa8406"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd930ae66a01c574db71c1761a3526bd"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_p_a.html#abd930ae66a01c574db71c1761a3526bd">radius</a></td></tr>
<tr class="memdesc:abd930ae66a01c574db71c1761a3526bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">A float variable, the parameter of Ball Pivot Algorithm.  <a href="#abd930ae66a01c574db71c1761a3526bd">More...</a><br/></td></tr>
<tr class="separator:abd930ae66a01c574db71c1761a3526bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae76b712e9c0adddbe20c547467fc2b9a"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_b_p_a.html#ae76b712e9c0adddbe20c547467fc2b9a">clustering</a></td></tr>
<tr class="memdesc:ae76b712e9c0adddbe20c547467fc2b9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">A float variable, the parameter of Ball Pivot Algorithm.  <a href="#ae76b712e9c0adddbe20c547467fc2b9a">More...</a><br/></td></tr>
<tr class="separator:ae76b712e9c0adddbe20c547467fc2b9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A Ball Pivot Algorithm class. </p>
<p>It is class to construct mesh from points cloud by using Ball Pivot Algorithm.<br/>
 It uses a VCG lib, which base on the paper "The Ball-Pivoting Algorithm for Surface Reconstruction [F. Bernardinl 1999]" </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a835a931279554e707ecaf2a25fef4fb5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BPA::BPA </td>
          <td>(</td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>vertice</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>normals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vertice_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A constructor. </p>
<p>Copy the imformation from <a class="el" href="class_cell_object.html" title="A Cell Object class. ">CellObject</a> to <a class="el" href="class_b_p_a.html" title="A Ball Pivot Algorithm class. ">BPA</a>, initial the <a class="el" href="class_my_mesh.html">MyMesh</a> data.<br/>
 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">vertice</td><td>a point of a array to store all vertice. </td></tr>
    <tr><td class="paramname">normals</td><td>a point of a array to store all normals. </td></tr>
    <tr><td class="paramname">vertice_num</td><td>the number of vertice. </td></tr>
    <tr><td class="paramname">r</td><td>the radius parameter of the ball-pivoting algorthm. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a07384750c4f16a4425cd54ce8f6d6b0b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BPA::CopyFaceIndex </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>faceIndex</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy the faces of mesh from the <a class="el" href="class_my_mesh.html">MyMesh</a> class to <a class="el" href="class_cell_object.html" title="A Cell Object class. ">CellObject</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">faceIndex</td><td>a point of a array to store all face index. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a57ffa971dd81d9f65adadd1685b6993b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int BPA::GetIndexVertex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_my_mesh.html">MyMesh</a> &amp;&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">MyMesh::VertexType *&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the vertex index of face. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td></td></tr>
    <tr><td class="paramname">p</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4f8e399f140a980a5b1a964c3fcd190b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BPA::Reconstruction </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>face_num</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reconstruct mesh from points cloud by using Ball Pivot Algorithm. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">face_num</td><td>return the number of faces in the reconstected mesh. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ae76b712e9c0adddbe20c547467fc2b9a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float BPA::clustering</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A float variable, the parameter of Ball Pivot Algorithm. </p>

</div>
</div>
<a class="anchor" id="aa7bc2f2a789d4562a0b76e10adfa8406"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_my_mesh.html">MyMesh</a> BPA::m</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A <a class="el" href="class_my_mesh.html">MyMesh</a> variable, the defination of this class is in VCG lib. </p>

</div>
</div>
<a class="anchor" id="abd930ae66a01c574db71c1761a3526bd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float BPA::radius</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A float variable, the parameter of Ball Pivot Algorithm. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="bpa_8h_source.html">bpa.h</a></li>
<li><a class="el" href="bpa_8cpp.html">bpa.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jul 9 2013 15:49:58 for 3D Cell by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1-20130512
</small></address>
</body>
</html>
